import request from "../request";


export const indexaction = () => request({ url: "/category/indexaction", method: 'get' })

//根据sidebar获取对应list
export const currentaction = data => request({ url: "/category/currentaction", method: 'get', data })

//根据图片id获取导航分类
export const categoryNav = data => request({ url: "/category/categoryNav", method: 'get', data })


export const goodsList = data => request({ url: "/goods/goodsList", method: 'get', data })

//商品详情
export const detailaction = data => request({ url: "/goods/detailaction", method: 'get', data })


//添加收藏
export const addcollect = data => request({ url: "/collect/addcollect", method: 'post', data })


